﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>
        ${config.SiteTitle}-个人资料
    </title>
    <link href="${site.theme_dir}css/Personal.css" rel="stylesheet"
          type="text/css" />
    <link href="${site.theme_dir}css/init.css" rel="stylesheet" type="text/css">
    <link href="${site.theme_dir}css/head.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" type="text/css" href="/Scripts/jquery_formValidator.css">

    <script type="text/javascript" src="${site.dir}Scripts/jquery-1.3.2.js"></script>

    <script type="text/javascript" src="${site.dir}Scripts/jquery_formValidator.js"></script>

    <script type="text/javascript" src="${site.dir}Scripts/jquery_formValidatorRegex.js"></script>

    <script type="text/javascript" src="${site.dir}Scripts/DateTimeMask.js"></script>

</head>
<body>
    <div id="page">
        <mm:header ID="header1" runat="server" />
        <div class="clear">
        </div>
        <div class="banner">
            <img height="72" src="${site.theme_dir}images/Default/guanggao.gif"
                 width="950">
        </div>
        <span style="display: block; margin: 8px 0;">首页 >> 会员后台</span>
        <div class="left">
            <mm:usermenu ID="usermenu1" runat="server" />
            <div class="zuo_xia">
                <div>
                    <img src="${site.theme_dir}images/Default/top.gif" width="195">
                </div>
                <div class="yhxx">
                    <mm:menu ID="menu1" runat="server" />
                </div>
                <img height="30" src="${site.theme_dir}images/Default/bg_03.gif"
                     width="195">
            </div>
        </div>
        <div class="right">
            <form id="userform" runat="server">
                <div class="Content">
                    <h2 class="sydd">
                        个人资料
                    </h2>
                    <span class="Secrecy">尊敬的用户，我们向您承诺：你的信息将被严格保密。 </span>
                    <table width="600" border="0" cellspacing="0" cellpadding="0" class="table_01">
                        <tr>
                            <td width="199" align="right">
                                用户名：
                            </td>
                            <td width="401">
                                ${user.UserName}
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                用户等级：
                            </td>
                            <td>
                                ${ blluser.GetUserGroup(user.GroupID)}
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                会员姓名：
                            </td>
                            <td>
                                <asp:TextBox ID="txtUserName" runat="server" CssClass="textfield_01"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                会员性别：
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlUserSex" runat="server">
                                    <asp:ListItem Text="男" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="女" Value="2"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                会员生日：
                            </td>
                            <td>
                                <asp:TextBox ID="txtUserBirthDay" runat="server" CssClass="textfield_01"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                身份证号：
                            </td>
                            <td>
                                <asp:TextBox ID="txtUserIdentityCard" runat="server" CssClass="textfield_01" Style="float: left;"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                电子邮箱：
                            </td>
                            <td>
                                <asp:TextBox ID="txtUserEmail" runat="server" CssClass="textfield_01"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                常用电话：
                            </td>
                            <td>
                                <asp:TextBox ID="txtUserTelephone" runat="server" CssClass="textfield_01"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                常用手机：
                            </td>
                            <td>
                                <asp:TextBox ID="txtUserPhone" runat="server" CssClass="textfield_01"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                所属区域：
                            </td>
                            <td>
                                <div class="ChinaArea">
                                    <select id="province" style="width: 100px;"></select>
                                    <select id="city" style="width: 100px;"></select>
                                    <select id="county" style="width: 120px;"></select>
                                    <asp:HiddenField runat="server" ID="Tprovince" />
                                    <asp:HiddenField runat="server" ID="TCity" />
                                    <asp:HiddenField runat="server" ID="TCounty" />
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                邮政编码：
                            </td>
                            <td>
                                <asp:TextBox ID="txtUserPostCode" runat="server" CssClass="textfield_01"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                备注：
                            </td>
                            <td>
                                <asp:TextBox ID="txtUserReadme" runat="server" CssClass="textfield_01"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                <asp:Button ID="btnSave" runat="server" Text="" CssClass="button_01" />
                            </td>
                        </tr>
                    </table>
                </div>
            </form>
        </div>
        <div class="clear">
        </div>
        <mm:footer ID="footer2" runat="server" />
    </div>

    <script type="text/javascript" src="/_template/default/scripts/location.js"></script>

    <script type="text/javascript" src="/_template/default/scripts/YLChinaArea.js"></script>

    <script type="text/javascript">
        $(document).ready(function() {
            $(".ChinaArea").jChinaArea({
                aspnet: true,
                s1: "${s1}",
                s2: "${s2}",
                s3: "${s3}"
            });
        });

        $(function() {
        $.formValidator.initConfig({ formid: "userform", alertmessage: true, onerror: function(msg) { alert(msg) } });

            $("#txtUserName").formValidator({ onshow: "请输入姓名", onfocus: "姓名不能为空", oncorrect: "姓名合法" }).inputValidator({ min: 1, onerror: "姓名不能为空,请确认" });

            $("#txtUserIdentityCard").formValidator({ onshow: "请输入15或18位的身份证", onfocus: "输入15或18位的身份证", oncorrect: "输入正确" }).regexValidator({ regexp: "idcard", datatype: "enum", onerror: "你输入的身份证格式不正确" });

            $("#txtUserBirthDay").DateTimeMask({ "lawlessmessage": "你输入的出生日期格式错误" }).formValidator().inputValidator({ min: "1900-01-01", max: "2010-01-01", type: "value", onerror: "日期必须在\"1900-01-01\"和\"2010-01-01\"之间" });

            $("#txtUserPhone").formValidator({ empty: true }).inputValidator({ min: 11, max: 11, onerror: "手机号码必须是11位的,请确认" }).regexValidator({ regexp: "mobile", datatype: "enum", onerror: "你输入的手机号码格式不正确" });

            //$("#txtUserTelephone").formValidator({ empty: true }).regexValidator({ regexp: "^[[0-9]{3}-|\[0-9]{4}-]?([0-9]{8}|[0-9]{7})?$", onerror: "你输入的联系电话格式不正确" });

            $("#txtUserPostCode").formValidator({ onshow: "请输入邮编", onfocus: "6位数字组成的哦", oncorrect: "谢谢你的合作，你的邮编正确" }).regexValidator({ regexp: "zipcode", datatype: "enum", onerror: "邮编格式不正确" });
        });
    </script>

</body>
</html>
